package tech.aistar.controller;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * 本类用来演示: 第一个servlet - 采用的是xml配置方式
 *
 * @author: success
 * @date: 2021/4/15 9:18 上午
 */
public class HelloServlet implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("init...");
    }



    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("service...");
    }

    @Override
    public void destroy() {
        System.out.println("destroy");
    }

    @Override
    public String getServletInfo() {
        return null;
    }


    @Override
    public ServletConfig getServletConfig() {
        return null;
    }
}
